import { Component, OnInit,Input,Output,EventEmitter } from '@angular/core';

@Component({
  selector: 'app-item',
  templateUrl: './item.component.html',
  styleUrls: ['./item.component.css']
})
export class ItemComponent implements OnInit {
  @Input() item:any;
  @Input() index:any;
  @Output() call=new EventEmitter<number>();
  
  constructor() { }

  ngOnInit() {
  }
  eventclick(id){
  	this.call.emit(id)
  }
  getitem(){
  	console.log(this.item);
  	return this.item;
  }

}
